#include "workday.hpp"

bool WorkDay::getHour(const string &hour)
{
    smatch what;
    if(boost::regex_match(hour,what,e)) {
        hours[hours_inserted] = duration_from_string(what[1] + ":00");
        hours_inserted++;
        return true;
    }

    return false;
}
